package com.itheima;

public class Demo02 {

    public static void main(String[] args) {

        int a = 34;
        int b = 0;

        try{

            System.out.println(a/b);

        }catch (ArithmeticException q){

            //String message = q.getMessage();               / by zero
           // System.out.println(message);

           // System.out.println(q.toString());                //java.lang.ArithmeticException: / by zero

            q.printStackTrace();

        }

        System.out.println("这件事情不需要再讨论了,好吧,听我的");
    }
}
